package com.pyk.service.impl;


import com.pyk.entity.Courses;
import com.pyk.mapper.CoursesMapper;
import com.pyk.service.CoursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CoursesServiceimpl implements CoursesService {
    @Autowired
    private CoursesMapper coursesMapper;
    @Override
    public List<Courses> List(String name) {

        return coursesMapper.List();
    }

    @Override
    public void delete(Integer id) {
        coursesMapper.delete(id);
    }

    @Override
    public void add(Courses courses) {
        coursesMapper.add(courses);
    }
}
